<template>
  <div>
    <!-- 顶部通栏 -->
    <AppTopnav />
    <!-- <nav>顶部通栏</nav> -->
    <!-- 头部 -->
    <!-- <header>头部</header> -->
    <AppHeader />
    <!-- 吸顶头部 ---固定定位-->
    <AppHeaderSticky />
    <!-- 主体内容 -->
    <main class="app-body">
      <RouterView />
    </main>
    <!-- 底部 -->
    <!-- <footer>底部</footer> -->
    <AppFooter />
  </div>
</template>

<script>
import AppTopnav from '@/components/app-topnav'
import AppHeader from '@/components/app-header'
import AppFooter from '@/components/app-footer'
import AppHeaderSticky from '@/components/app-header-sticky'
export default {
  name: 'Layout',
  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  created () {
    this.$store.dispatch('category/getCategory')
  }
}
</script>

<style lang="less" scoped>
.app-body {
  min-height: 600px;
}
</style>
